import { http } from '@/utils/http'
import type { GoodsItem } from '@/types/goods'
// 通过商品 id 查询商品详情信息
export const getGoodsByIdAPI = (id: number) => {
  return http<GoodsItem>({
    method: 'GET',
    url: '/goods',
    data: { id, opr: 'findById' },
  })
}
